package org.liqingye.es.page;

import java.util.List;

public class Page<T> {

    // 页码
    private int pageNum;

    // 页码总数
    private int pageCount;

    // 总条数
    private int count;

    // 每页数量
    private int pageSize;

    // 返回数据
    private List<T> list;

    public Page(int pageNum, int pageCount, int count, int pageSize, List<T> list) {
        super();
        this.pageNum = pageNum;
        this.pageCount = pageCount;
        this.count = count;
        this.pageSize = pageSize;
        this.list = list;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

}
